package com.jeasonzhao.model.credentail;

public class BaseResourceToken<RESOURCE,USER,TOKEN> implements IAccessToken
{
    private RESOURCE m_resource = null;
    private USER m_user = null;
    private TOKEN m_token = null;
    public BaseResourceToken()
    {
        super();
    }

    public BaseResourceToken(RESOURCE res,USER user)
    {
        super();
        m_resource = res;
        m_user = user;
    }

    public void setResource(RESOURCE resource)
    {
        this.m_resource = resource;
    }

    public void setUser(USER userId)
    {
        this.m_user = userId;
    }

    public void setToken(TOKEN token)
    {
        this.m_token = token;
    }

    public RESOURCE getResourceId()
    {
        return m_resource;
    }

    public USER getUserId()
    {
        return m_user;
    }

    public TOKEN getToken()
    {
        return m_token;
    }
}
